<?php
//后台
Route::namespace('Admin')->group(function (){

    //登录中间件
//    Route::middleware('login')->group(function (){
        //后台
        Route::get('admin','OtherController@admin')->name('admin');
        Route::get('statistical','OtherController@statistical')->name('statistical');

        Route::prefix('customer')->group(function (){{
            //客户列表
            Route::get('list','CustomerController@list')->name('customer.list');
            //统计客户
            Route::any('add','CustomerController@add')->name('customer.add');
            //删除客户
            Route::get('dels','CustomerController@dels')->name('customer.dels');
            //修改客户
            Route::any('edit/{id}','CustomerController@edit')->name('customer.edit');
        }});

//    });
});